<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>   
<!DOCTYPE html>
<html>
<head>
<style>
table{
display: table;
border-collapse: collapse;
}

body,table,tr, td, input,textarea {
font-family:cat;
font-size: 20px;
text-decoration: none;
}

</style>
<link type="text/css" rel="stylesheet" href="./resources/common/common.css"> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>자유게시판 상세 화면</title>
</head>
<body align="center">
		
	<!-- 사이드바 -->
<table align="center" border="1" summary="상세 내용">

		<caption>상세 화면</caption>
		<tr height="40" align="left">
				<td bgcolor="f6f6f6" width="80">&nbsp;&nbsp;&nbsp;번호</td>
				<td width="150">&nbsp;&nbsp;&nbsp;${boardList.board_no }</td>
			</tr>
			<tr height="40" align="left">
				<td bgcolor="f6f6f6" width="80">&nbsp;&nbsp;&nbsp;제목</td>
				<td width="150">&nbsp;&nbsp;&nbsp;${boardList.board_title  }</td>
			</tr>
			<tr height="40" align="left">
				<td bgcolor="f6f6f6" width="80">&nbsp;&nbsp;&nbsp;글쓴이</td>
				<td width="150">&nbsp;&nbsp;&nbsp;${boardList.board_writer  }</td>
			</tr>
			<tr height="40" align="left">
				<td bgcolor="f6f6f6" width="80">&nbsp;&nbsp;&nbsp;등록날짜</td>
				<td width="150">&nbsp;&nbsp;&nbsp;${boardList.board_date  }</td>
			</tr>
			<tr height="40" align="left">
				<td bgcolor="f6f6f6" width="80">&nbsp;&nbsp;&nbsp;조회수</td>
				<td width="150">&nbsp;&nbsp;&nbsp;${boardList.board_readacount  }</td>
			</tr>
			<tr height="40" align="left">
				<td bgcolor="f6f6f6" width="80">&nbsp;&nbsp;&nbsp;내용</td>
				<td width="150">&nbsp;&nbsp;&nbsp;${boardList.board_content  }</td>
			</tr>
		</table>
		<a href="update?board_no=${boardList.board_no}" ><input type="button" value="수정"></a>
		<a href="delete?board_no=${boardList.board_no}" ><input type="button" value="삭제"></a>				
<br><br>

	<table width=60% border=1 align=center cellpadding=0 cellspacing=1 style="border-width: 1; border-color: rgb(204, 204, 204); border-style: dotted;">
		<tr bgcolor=F0F0F0>
			<td>
				<table width=100%>
					<col width=100></col>
					<col width=1></col>
					<col width=15></col>
					<col width=''></col>
					<col width=1></col>
					<col width=99></col>

					<c:forEach items="${commentList}" var="comment">
						<tr>
							<td align=center style='word-break: break-all;'>${comment.user_id}</td>
							<td bgcolor=#aabbcc></td>
							<td></td>
							<td style='word-break: break-all; text-align: justify; line-height: 150%;'>${comment.comment}</td>
							<td bgcolor=#aabbcc></td>
							<td  align=center>${comment.registdate}<br> 
<%-- 							<a href="javascript:showPassword(<?=$row_cmt[id]?>);">x</a> --%>
							</td>
				
						</tr>
					</c:forEach>
				</table>
			</td>
		</tr>
	</table>

	<table width=60% align=center border=1 cellpadding=3 cellspacing=1 style="border-width: 1; border-color: rgb(204, 204, 204); border-style: dotted;">
		<tr>
			<td bgcolor=#f0f0f0>
				<table width=100% cellpadding=3 cellspacing=0>
					<form method=post action='commentInsert'>
			
						<tr>
							<td>
							이름 <input type=text name=user_id size=10 style="font-family: verdana; font-size: 97%; color: #000000; ">
							<input type="hidden" name="board_no" value="${boardList.board_no}">&nbsp;&nbsp;
							비밀번호
							<input type=password name=pass size=10 style="font-family: verdana; font-size: 97%; color: #000000; ">
					
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						
							<input type=submit value=' 등 록 ' style="font-family: verdana; font-size: 97%;">&nbsp;
							<input type=reset value=' 취 소 ' style="font-family: verdana; font-size: 97%;">
							</td>
						</tr>
						<tr>
							<td valign=bottom><textarea name=comment rows=5 style='width: 100%; line-height: 150%;' style="font-family:verdana;font-size:97%; color:#000000; background-color:#f0f0f0"></textarea></td>
							</tr>
					</form>
				</table>
			</td>
		</tr>
	</table>
</body>
</html>
				